Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major refactoring of string handling #11

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

vipentti
Copy link
Owner

@vipentti vipentti commented Dec 8, 2023

  • Support interpolated strings

  • Multiline strings are lifted to the top-level of the program
    because by default the F# includes the indentation of the current
    scope as part of the string, this made it very difficult to format
    multiline strings because there were no guarantees what the
    actual result would end up being.

    We also normalize multiline strings to match C# raw-string literals
    on how the indentation is managed. This may not work 100% accurately
    but it should be an improvement and it can be improved in the future.

- Support interpolated strings
- Multiline strings are lifted to the top-level of the program
  because by default the F# includes the indentation of the current
  scope as part of the string, this made it very difficult to format
  multiline strings because there were no guarantees what the
  actual result would end up being.

  We also normalize multiline strings to match C# raw-string literals
  on how the indentation is managed. This may not work 100% accurately
  but it should be an improvement and it can be improved in the future.
@vipentti vipentti merged commit 7ad83c9 into main Dec 8, 2023
3 checks passed
@vipentti vipentti deleted the feature/interpolated-strings branch December 8, 2023 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant